<template>
	<view>
		<view class="Store">
			<view class="Info">
				<image :src="$imgUrls(pageData.logo)" mode="aspectFill" class="logo" v-if="pageData.logo"></image>
				<view class="Box">
					<text class="name ellipsis" user-select>{{pageData.name}}</text>
					<view class="Data">
						<view class="queuing_num" v-if="pageData.bussName">{{pageData.bussName}}</view>
						<text class="mark" v-if="pageData.favorable">评分：{{pageData.favorable}}</text>
						<text class="sales_volume" v-if="pageData.sales">销量：{{pageData.sales}}</text>
					</view>
				</view>
			</view>
			<view class="contact">
				<view class="contact_li" @click.stop="$common.Tel(pageData.phone)">
					<text class="iconfont icon-dianhua size32 m-top4"></text>
					<text class=" size28 p-left20" user-select>{{pageData.phone}}</text>
				</view>
				<view class="contact_li">
					<text class="iconfont icon-B  size32"></text>
					<text class=" size28 p-left20" user-select>{{pageData.address}}</text>
				</view>
			</view>

			<!-- 	<Coupons :pageData="coupons" :coupons_cate="coupons_cate"></Coupons> -->

		</view>

	</view>
</template>

<script>
	import Coupons from './Coupons.vue'
	export default {
		props: ['pageData', 'coupons', 'coupons_cate'],
		components: {
			Coupons
		},
		data() {
			return {
				Img: 'https://msraimgcdn.mogoie.com/6099/1693813515733.jpg'
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.Store {
		width: 100%;

		background-color: #ffffff;
		border-radius: 10rpx 10rpx 0 0;
		box-sizing: border-box;

		.Info {
			display: flex;
			padding: 30rpx 20rpx;

			.logo {
				width: 120rpx;
				height: 120rpx;
				border-radius: 10rpx;
				margin-right: 24rpx;
			}

			.Box {
				flex: 1;
				display: flex;
				flex-direction: column;
				justify-content: space-around;

				.name {
					color: #000;
					font-size: 30rpx;

				}

				.Data {
					display: flex;
					align-items: center;
					margin-top: 10rpx;

					.queuing_num {
						padding: 2rpx 16rpx;
						background-color: var(--color);
						color: #fff;
						font-size: 26rpx;
						margin-right: 30rpx;
						border-radius: 6rpx;
					}

					.mark {
						color: var(--color);
						font-size: 26rpx;
						margin-right: 30rpx;
					}

					.sales_volume {
						color: #999;
						font-size: 26rpx;
					}
				}
			}
		}

		.contact {
			width: 100%;
			border-top: 1rpx solid $page;
			display: flex;
			flex-direction: column;
			padding: 20rpx;

			.contact_li {
				display: flex;
				padding: 14rpx 0;
				color: #999;
			}
		}




	}
</style>